home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / VGA_VUL1.ZIP / VULTURE.TXT < prev   
Text File  |  1995-06-17  |  6KB  |  115 lines

  1.  
  2.       ╒═══════════════════════════════════════════════════════════════╗
  3.       │■                                                            ■ ║
  4.       │                                                               ║
  5.       │  █████████░                   ██░                             ║
  6.       │  ██░    ██░ ██░   ██░ ██████░ ██░     ████████░ ██░     ██░   ║
  7.       │  ██░    ██░ ██░   ██░   ██░   ██░     ██░   ██░ ██░     ██░   ║
  8.       │  ██░    ██░ ██░   ██░   ██░   ██░     ████████░ ██░     ██░   ║
  9.       │  ██░    ██░ ██░   ██░   ██░   ██░     ██░   ██░ ██░ ██░ ██░   ║
  10.       │  █████████░ ████████░   ██░   ██████░ ██░   ██░  ███░ ███░    ║
  11.       │                                                               ║
  12.       │                        T ∙ R ∙ I ∙ A ∙ D                      ║
  13.       │■                                                            ■ ║
  14.       └───────────────────────────────────────────────────────────────╜
  15.                                ╔══════════════╗
  16.                                ║ ∙ PRESENTS ∙ ║
  17.                                ╚══════════════╝
  18.  
  19.                         Little VGA intro-source code.
  20. ───────────────────────────────────────────────────────────────────────────────
  21.  Created By   : Vulture                  Total Files  : 7
  22.  File Type    : VGA-intro source         Release Date : 17th of June 1995
  23.  Difficulty   : Beginners level          Filename     : VGA-VUL1.ZIP
  24. ───────────────────────────────────────────────────────────────────────────────
  25.  
  26.  Well, here's another contribution to the large number of source-codes
  27.  available. It's a very simple little VGA intro including a 3D starfield,
  28.  a horizontal scroller and a palette fading. Enough for the beginning demo
  29.  coder to get started... (worked for me:))
  30.  
  31.  The files included should be:
  32.  
  33.      - boardz.exe     =>     The executable
  34.      - boardz.asm     =>     The full source
  35.      - numbers.dat    =>     Data for starfield
  36.      - font.dat       =>     Data for font
  37.      - make.bat       =>     Makes the .exe
  38.      - vulture.txt    =>     This text (wow:))
  39.      - file_id.diz    =>     File description
  40.  
  41.  Ok, there will probably be some other bbs-intros in this package too but
  42.  that's not a problem, I think. Hé, you downloaded thiz file so you are
  43.  obviously interested in demos anyway... :)
  44.  
  45.  Right, on with the real stuff. The code is fully documented. And I mean
  46.  fully. Just check it out. I have described nearly everything there was to
  47.  describe in the .asm file. The mean reason I did this is because when I did
  48.  this simple thing, I had only just begun coding asm. And besides, I think
  49.  it's a good idea to comment this kinda stuff. It's hard enough as it is...:)
  50.  
  51.  Well, since the code is documented, I will not explain things here. If you
  52.  have just a little experience coding asm, it won't be too hard to understand.
  53.  Only thing that might need some extra explanation is the font data. It's
  54.  acctualy very simple. Imagine having a font drawn on top of the screen.
  55.  What you have to do is save every pixel(color)value on the screen to a file.
  56.  Here is it in plain pascal. You should have a GetPixel function available.
  57.  
  58.  For Y := 0 to 9 do             { Save 10 lines of data }
  59.  Begin
  60.    For X := 0 to 319 do         { Get the entire line }
  61.    Begin
  62.      Color := GetPixel(X,Y);    { Get the color value }
  63.      Write(FileName,Color);     { Write to file }
  64.    End;
  65.  End;
  66.  
  67.  As you can see it's very simple indeed. Just play a little with it to get
  68.  it to work the way you want. You can use the same technique for entire
  69.  pictures. I've made a small Pascal program which does do this. Saves to a
  70.  pascal constant or assembly datafile. Might release it someday too...
  71.  
  72.  The code concerning the 3D-starfield was originally from an example coded by
  73.  a guy named Draeden. A welknown American dude in the demo-scene. Only thing
  74.  I did was optimize a little, add a few things and comment the stuff. I don't
  75.  see any reason to do the whole starfield on my own when there are examples
  76.  available. Besides, if I code it myself, it would probably look a lot like
  77.  the examples anyway. Happened before... I know what I'm talking about... :))
  78.  
  79.  Hmm, Outlaw is looking for a good gfx artist. If yar interested in creating
  80.  cewl things on the PC contact us at our distros. Or email: comma400@tem.nhl.nl
  81.  Don't hesitate to contact us, coz we like to chat with otha scene people... :)
  82.  
  83.  Ok, that's all I have to say for now. Check out the .asm file and learn from
  84.  it. Don't just rip the code. That would be lame. But then again, if there
  85.  weren't any lamerz, cewl people wouldn't have anyone to loose their frusta-
  86.  tions on... hehe :)
  87.  
  88.  
  89.  Be seeing ya...
  90.  
  91.            Signed:    Vulture / Outlaw Triad
  92.  
  93.  
  94. ─────────────────────────┬───────────────────────┬────────────────────────────
  95.  Outlaw Triad Distros :  │  Greetz from Outlaw:  │  Releases sofar:
  96. ─────────────────────────┼───────────────────────┼────────────────────────────
  97.                          │                       │
  98.  ■    Blue Thunder   ■   │   - DemoLisher        │   ■ MESSAGE  (dosscroller)
  99.  ■ +31 (0)36-5346967 ■   │   - ThunderHawk       │
  100.                          │   - Ash               │   ■ VGA-VUL1 (sources)
  101.                          │   - The Machine       │
  102.  ■     FireHouse     ■   │   - X∙N∙TRiC          │   ■ CHAINDOC (textfile)
  103.  ■ +31 (0)58-2661590 ■   │   - Utter Chaos       │
  104.                          │   - Crusher           │   ■ VGA-VUL2 (sources)
  105.                          │                       │
  106.                          │   - Critical          │   ■ BASICDOC (textfile)
  107.      Open for more!      │   - Da Frisian Force  │
  108.                          │   - Tribal            │   + various bbs-intros
  109.                          │                       │
  110. ─────────────────────────┴───────────────────────┴────────────────────────────
  111.  
  112.                    ■ (C) 1995  O∙U∙T∙L∙A∙W   T∙R∙I∙A∙D ■
  113.  
  114. ──────────────────────────────────────────────────────────────────────────────
  115.